<?php

include_once(__DIR__ . '/class.grades.php');

class grades_previous_year extends grades {
	function __construct($class_code, $report_code, $course_code) {
		parent::__construct($class_code, $report_code, $course_code);
	}
	
	function get_courses($school_class) {
		global $CFG;
		include_once(__DIR__ . '/class.grade_item.php');
		include_once($CFG->app_dir . '/journal/class.journal_previous_year.php');
		$item = new grade_item($this->itemname);
		return new journal_previous_year(
			$school_class,
			$item->get_code(),
			$this->course_code
		);
	}
	
	function __destruct() {
		parent::__destruct();
	}
}

?>
